package com.yanqu.road.logic.bussiness.config;

import com.yanqu.road.entity.config.thief.ThiefInfo;
import com.yanqu.road.entity.player.UserThief;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

/**
 * 小偷系统
 */
public class ThiefBusiness {

    public static Map<Integer, ThiefInfo> getThiefInfoMap() {
        return DaoHelper.getThiefInfoDaoImpl().getThiefInfoMap();
    }


    public static Map<String, UserThief> getUserThiefMap(long userId) {
        return DaoHelper.getUserThiefDaoImpl().getUserThiefMap(userId);
    }

    public static boolean addUserThief(UserThief data) {
        return DaoHelper.getUserThiefDaoImpl().add(data);
    }

    public static boolean updateUserThief(UserThief data) {
        return DaoHelper.getUserThiefDaoImpl().update(data);
    }

}
